<template>
    <div class="w-screen h-screen flex flex-col items-center justify-center">
        <u-empty mode="permission" text="系统维护，站点已关闭">
            <u-button
                class="mt-2"
                v-if="configStore?.loginConfig?.config?.close_url"
                @click="jumpUrl(configStore?.loginConfig?.config?.close_url)"
                >跳转外站</u-button
            >
        </u-empty>
    </div>
</template>

<script setup lang="ts">
import useConfigStore from "@/stores/config";
import { useRoute } from "@/hooks/useRoute";

const configStore = useConfigStore();

const { linkTo } = useRoute();

const jumpUrl = (url) => {
    linkTo(url);
};
</script>

<style lang="scss" scoped></style>
